package bat.ke.qq.com.service;

import bat.ke.qq.com.bean.Fox;
import bat.ke.qq.com.bean.User;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.inject.Inject;
import javax.inject.Named;
import java.beans.ConstructorProperties;
import java.util.List;

/**
 *
 */
@Slf4j
@Service
@ToString
public class UserService {

//    @Autowired(required = false)
//    //@Qualifier("user2")
//    private List<User> userList;

    @Getter
    @Setter
    private User user;

    public UserService() {
        log.info("调用构造器UserService()");
    }

//    public UserService(String name){
//        System.out.println("调用构造器UserService(String name)");
//    }

    public UserService(User user) {
        this.user = user;
        log.info("调用构造器UserService(User user)");
    }
//

//    public UserService( Fox fox){
//        System.out.println("调用构造器UserService(Fox fox)");
//    }


//    public UserService(User user, Fox fox){
//        System.out.println("调用构造器UserService(String name, Fox fox)");
//    }


//    public UserService(User user, String name){
//        System.out.println("调用构造器UserService(String name, String name)");
//    }

}
